<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/include/taglibs.jsp" %>
<%@ page import="com.depo.quiggle.view.controller.RateTemplateAction" %>
 		<%-- basheers code added by srikanth start --%>
        <link href="${pageContext.request.contextPath}/bcss/style.css" rel="stylesheet" type="text/css" />
		<script src="${pageContext.request.contextPath}/bSpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
		<link href="${pageContext.request.contextPath}/bSpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
		<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/my-profile.css" />
		<link rel="stylesheet" media="all" type="text/css" href="${pageContext.request.contextPath}/css/jquery/overcast/jquery-ui-1.8.21.custom.css" />
		<!--<script type="text/javascript" src="${pageContext.request.contextPath}/bjs/jquery.js"></script>-->
		<script type="text/javascript" src="${pageContext.request.contextPath}/bjs/custom.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/rate-template.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/rateTableForQGL.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/qgl-log-accounting.js"></script>
		
        <%-- basheers code added by srikanth end --%>
        
<script type="text/javascript">
var usaStates = [

                 <c:forEach items="${actionBean.usaStates}" var="state" varStatus="">
                 {
                     value:" ${state.shortName}",
                     firstName: "",
                     lastName: ""
                 },
                 </c:forEach>
             ];  
        var perunitlist = [

            <c:forEach items="${actionBean.ratUnitType}" var="rateunit" varStatus="rateunits">
            {
               
                id: "${rateunit.id}",
                type: "${rateunit.type}"
                
            }<c:if test="${!rateunits.last}">,</c:if>
            </c:forEach>
        ];
        <c:set var="notExpediteCount" value="0"/>
        var expeditTypeslist = [

                           <c:forEach items="${actionBean.expeditTypes}" var="expeditType" varStatus="expeditTypes">
                           <c:if test="${expeditType.priceType==1}">
                       		
                           <c:if test="${notExpediteCount!=0}"> , </c:if>
                        	   
                           {  
                               id: "${expeditType.cdId}",
                               type: "${expeditType.codeName}"
                           }
                           <c:set var="notExpediteCount" value="${notExpediteCount+1}"/>                    
                           </c:if>
                           
                           </c:forEach>
                       ];


					   $(document).ready(function(){
						   
						   $(".usaStates").autocomplete({
								source: usaStates
							});
						  
						$("#instructionsHideLink").live("click",function(){

						$("#contentIns").hide();
						$("#instrutionsSpan").html("<a title='click here to show the instructions' id='instructionsShowLink' style='background:#E3F2FF;' href='javascript:{}'><img  id='instructionsDownarrowimg' src='images/downarrow.png' width='10' height='9' alt='Hide' /></a>");
						});
						

						$("#instructionsShowLink").live("click",function(){
						$("#contentIns").show();
						$("#instrutionsSpan").html("<a title='click here to hide the instructions' id='instructionsHideLink' style='background:#E3F2FF;' href='javascript:{}'><img  id='instructionsuparrowimg' src='images/uparrow.png' width='10' height='9' alt='Hide' /></a>");

						});

					});
        
</script>